﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace Vehicle.BLL
{
    /// <summary>
    /// Copyright (C) M-Tear团队
    /// 文 件 名：Role.cs
    /// 版    本：v1.00.0000
    /// 创建标识：2009-08-27    Created by 杨光远 V1.00.0000
    /// 功能说明：Role表逻辑层类（继承于逻辑层基类)
    /// 注意事项：无
    /// 
    /// 更新记录：
    /// 
    /// </summary>
    public class Role : BLL.Base_BLL,IRole
    {
        private static readonly Vehicle.Interface.IRole d_Role = Vehicle.Interface.Factory.CreateRole();

        /// <summary>
        /// 绑定页面Repeater控件
        /// </summary>
        /// <param name="dlst">DataList控件</param>
        ///  <param name="ma">系统通用实体层</param>
        public void RepeaterBind(Repeater rept, Model.ComponentsInfo m_ComponentsInfo)
        {
            d_Role.RepeaterBind(rept, m_ComponentsInfo);
        }

        /// <summary>
        /// 绑定页面DropDownList控件
        /// </summary>
        /// <param name="drop">DropDownList控件</param>
        public void DropDownListBind(DropDownList drop)
        {
            d_Role.DropDownListBind(drop);
        }
        /// <summary>
        /// 添加角色
        /// </summary>
        /// <param name="drop">角色表实体层</param>
        public void Add(Model.RoleInfo m_RoleInfo)
        {
            d_Role.Add(m_RoleInfo);
        }
        /// <summary>
        /// 修改角色
        /// </summary>
        /// <param name="drop">角色表实体层</param>
        public void Update(Model.RoleInfo m_RoleInfo)
        {
            d_Role.Update(m_RoleInfo);
        }
    }
}
